<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link rel="stylesheet" href="__PUBLIC__/assets/css/jquery-ui.css" />
</block>
<block name="stylecss">
<style type='text/css'>
	.pages a,.pages span {
	    display:inline-block;
	    padding:5px 9px;
	    margin:0 1px;
	    border:1px solid #f0f0f0;
	}
	.pages a,.pages li {
	    display:inline-block;
	    list-style: none;
	    text-decoration:none; color:#58A0D3;
	}
	.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
	    margin:0;
	}
	.pages a:hover{
	    border-color:#50A8E6;
	}
	.pages span.current{
	    background:#50A8E6;
	    color:#FFF;
	    font-weight:700;
	    border-color:#50A8E6;
	}
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>

	<li class="active">考官统计列表</li>
</ul><!-- /.breadcrumb -->

</block>

<block name="content">
	<div class="accordion" id="accordion2" style="border:1px solid #cccccc;padding:10px;border-radius:8px;margin-bottom:10px">
		<div class="accordion-group">
			<div class="accordion-heading">
				<a class="accordion-toggle collapsed" style="font-size:14px;" data-toggle="collapse" data-parent="#accordion2" href="#collapseSelect"> 请选择查询条件 </a>
			</div>
				<div id="collapseSelect" class="accordion-body collapse" style="height: 0px;padding-top:10px">
					<div class="accordion-inner">
						<form action="" id="form" name="selectUserForm" method="get">
							<input type="hidden" name="p" value="1">
							<table class="table" style="margin:0">
								<tr>
									<td>midiID：<input type="text" name="user_id"></td>
									<td>姓名：<input type="text" name="user_name"></td>
									<td><button class="btn btn-sm btn-success" type="submit">查询</button></td>
								</tr>
							</table>
						</form>
					</div>
				</div>
		</div>
	</div>
	<input type="hidden" id="crontab-s" />

	<table id="sample-table-1" class="table table-striped table-bordered table-hover">
		<thead>
			<tr>
			    <th class="center">编号</th>
				<th class="center">midi ID</th>
				<th class="center">姓名</th>
				<th class="center">派单次数</th>
				<th class="center">完成次数</th>
				<th class="center">收入</th>
				<th class="center">操作</th>
			</tr>
		</thead>

		<tbody>
			<foreach name="exam_arr" item="v">
			<tr style="text-align:center">
				<td class="center">{$key+1}</td>
				<td class="center">{$v.user_id|formatNO=6}</td>
				<td>{$v.user_name}</td>
				<td>{$v.exam_count}</td>
				<td>{$v.exam_finish_count}</td>
				<td>
					<?php if (empty($v['exam_income'])): ?>
					0.00
					<?php else: ?>
					{$v.exam_income}
					<?php endif ?>
				</td>
				<td>
					<div class="hidden-sm hidden-xs btn-group">
						<div class="hidden-sm hidden-xs action-buttons">
							<a class="blue" style='cursor:pointer' title='查看详细信息'onClick='location.href="__CONTROLLER__/statistics_details/user_id/{$v.user_id}"'>
								<i class="ace-icon fa fa-search-plus bigger-130"></i>
							</a>
						</div>
					</div>
				</td>
			</tr>
		    </foreach>
		</tbody>
	</table>
<div class="pages" style="float:right">{$page}</div>
</block>
<block name="scripts"></block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_statistics').addClass('active open');
        $('#menu_statistics_list').addClass('active');
    });
</script>
</block>